let currentPage = null;
let totalPages = null;
let currentRoleId = null; // 当前正在分配菜单的角色ID
let allMenus = []; // 所有菜单数据
let selectedMenuIds = []; // 已选中的菜单ID
let parentMenus = []; // 父菜单数据
let pageSize = null;
let currentUserId = 0;
let allRoles = [];
let selectedRoleIds = [];

const API_URL = "http://localhost:8088/student";
const COURSE_API_URL = "http://localhost:8088/studentCourse";
const COURSE_CATALOG_URL = "http://localhost:8088/courses";
let currentStudentNo = null;
let allCourses = []; // 存储所有课程（包含分类）
let assignedCourseNos = []; // 已分配课程编号
let courseGrades = {}; // 课程成绩映射


// 全局变量
let allTeachers = [];
let teachersLoaded = false;
let totalRecords = 0;
let currentSearch = '';

